package com.healthy.entity;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.healthy.entity.YgAdmins;

/**
 * 
 * @author HGB丶阳光
 * @date 2020年6月10日
 * @description: 文章实体类创建
 *
 */
@JsonIgnoreProperties(value = {"handler"})
public class YgDocument implements java.io.Serializable {
	
	/**
	 * 解决复杂实体类之间产生的序列化问题
	 */
	private static final long serialVersionUID = 455633186037128066L;
	
	private String did;        // 文章主键 uid 
	private String type;       // 文章类型，必须字段
	private String title;      // 文章标题，必须字段
	private String content;    // 文章内容，必须字段
	private Date postTime;     // 发布时间，必须字段
	private Integer priority;  // 文章的优先级，值越大优先级越高
	private YgAdmins admins;
	// 标题图在服务器上的相对路径
	private String head_img;

	public YgDocument(String did, String type, String title, String content, Date postTime, Integer priority,
			YgAdmins admins, String head_img) {
		super();
		this.did = did;
		this.type = type;
		this.title = title;
		this.content = content;
		this.postTime = postTime;
		this.priority = priority;
		this.admins = admins;
		this.head_img = head_img;
	}

	public YgDocument() {
	}

	public String getDid() {
		return did;
	}

	public void setDid(String did) {
		this.did = did;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getPostTime() {
		return postTime;
	}

	public void setPostTime(Date postTime) {
		this.postTime = postTime;
	}

	public YgAdmins getAdmins() {
		return admins;
	}

	public void setAdmins(YgAdmins admins) {
		this.admins = admins;
	}

	public String getHead_img() {
		return head_img;
	}

	public void setHead_img(String head_img) {
		this.head_img = head_img;
	}

	public Integer getPriority() {
		return priority;
	}

	public void setPriority(Integer priority) {
		this.priority = priority;
	}

	@Override
	public String toString() {
		return "YgDocument [did=" + did + ", type=" + type + ", title=" + title + ", content=" + content + ", postTime="
				+ postTime + ", priority=" + priority + ", admins=" + admins + ", head_img=" + head_img + "]";
	}
    
}
